package com.example.wanandroid.retrofit

import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

object RetrofitUtil {
    private val retrofit:Retrofit by lazy {
        Retrofit.Builder()
            .baseUrl("https://www.wanandroid.com/")
            .addConverterFactory(GsonConverterFactory.create())
            .build()
    }

    val wanAndroidApi: WanAndroidApi by lazy {
        retrofit.create(WanAndroidApi::class.java)
    }
}